#ifndef IEC101TRANSFER_H
#define IEC101TRANSFER_H

/**
 * @copyright Copyright (c) 2025 
 * CSG Digital Grid Technology (Guangdong) Co., Ltd.
 * @author zhouyan
*/
#include "sys_inc.h"

class IPhyLink;
class IEC101Transfer
{
public:
    IEC101Transfer();
    static uint8_t calcCheckSum(const uint8_t *buf, uint8_t size);
    static bool sendCmdAndRecv(IPhyLink *uart, const uint8_t *tx_buf, uint8_t tx_len, uint8_t *recv_buf, uint8_t *rx_len);
};

#endif
